let obj = {
    name:'zs',
    age:20,
    objx:{
        name:'ls'
    }
}

let obj2 = {
    // ...obj
    // ...obj.objx
    name:'ls'
}

// console.log(obj)
// console.log(obj2)




let obj3 = {
    name:'zs',
    age:20,
    objx:{
        name:'ls'
    }
}
// let name = obj3.name
// console.log( name)

let {name,age} = obj3
console.log(name,age)
